
function generateDateArray(daysCount) {
    const dateArray = [];
    for (let i = 0; i < daysCount; i++) {
        const date = new Date();
        date.setDate(date.getDate() - i);
        const month = (date.getMonth() + 1).toString().padStart(2, '0');
        const day = date.getDate().toString().padStart(2, '0');
        dateArray.unshift(`${month}.${day}`); // 使用unshift添加到数组开头，并使用点号作为分隔符
    }
    return dateArray;
}

export default generateDateArray;